"""update address_id to address

Revision ID: e2d243a1fa51
Revises: a8caaaa4a038
Create Date: 2025-07-06 13:05:04.980964

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql

# revision identifiers, used by Alembic.
revision: str = 'e2d243a1fa51'
down_revision: Union[str, Sequence[str], None] = 'a8caaaa4a038'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('order', sa.Column('address', sa.String(length=500), nullable=True))
    op.drop_column('order', 'address_id')
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('order', sa.Column('address_id', mysql.VARCHAR(length=200), nullable=True))
    op.drop_column('order', 'address')
    # ### end Alembic commands ###
